//
//  BaseViewController.h
//  嗨文
//
//  Created by 响当当 on 2019/1/7.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController<UINavigationControllerDelegate,UIGestureRecognizerDelegate>
//左侧第一按钮
@property (nonatomic, strong) UIButton *leftButton;
//右侧第一按钮
@property (nonatomic, strong) UIButton *rightButton;
//左侧第二按钮
@property (nonatomic, strong) UIButton *secondLeftButton;
//右侧第二按钮
@property (nonatomic, strong) UIButton *secondRightButton;
//左侧第一Label
@property (nonatomic, strong) UILabel *leftLabel;
//标题
@property (nonatomic, strong) UILabel *topTitleLabel;
//自定义navgation
@property (nonatomic, strong) UIImageView *topTitleView;
//
@property (nonatomic, strong) UIImageView *navBgImageView;
//底部横线
@property (nonatomic, strong) UIImageView *line;

@property (nonatomic, strong) UIImageView *iconImgView;

//禁用右滑手势 Yes 禁用  No 启用  一级菜单设置为Yes 防止右滑手势造成假死问题
@property (nonatomic, assign) BOOL disablePopGesture;

//默认绿色返回按钮
- (void)setDefaultNav;
//默认绿色返回按钮/标题
- (void)setDefaultNavWithTitle:(NSString *)title;
//默认绿色返回按钮／标题／右侧按钮
- (void)setDefaultNavWithTitle:(NSString *)title WithRightButton:(UIImage *)rightImage;
//默认绿色返回按钮／右侧按钮
- (void)setDefaultNavWithRightButton:(UIImage *)rightImage;
//左侧按钮／右侧按钮
- (void)setLeftButton:(UIImage *)leftImage WithRightButton:(UIImage *)rightImage;
//左侧按钮／标题／右侧按钮
- (void)setLeftButton:(UIImage *)leftImage WithTitle:(NSString *)title WithRightButton:(UIImage *)rightImage;
//左侧按钮
- (void)setLeftButtonImage:(UIImage *)image;
//右侧按钮
- (void)setRightButtonImage:(UIImage *)image;
//标题
- (void)setTitle:(NSString *)title;
//右按钮标题
- (void)setRightTitle:(NSString *)title TitleColor:(UIColor *)titleColor;
//左侧标题／标题／右侧标题
- (void)setLeftTitle:(NSString *)leftTitle WithTitle:(NSString *)title WithRightTitle:(NSString *)rightTitle;

//左侧标题
- (void)setLeftTitle:(NSString *)leftTitle;
//右侧标题
- (void)setRightTitle:(NSString *)rightTitle;

//nav背景颜色
- (void)setNavBackgroundColor:(UIColor *)color;
//nav透明
- (void)setNavBackgroundClear;
//nav背景图片
- (void)setNavBackgroundImage:(UIImage *)bgImage;

//左侧第二按钮
- (void)setSecondLeftButtonImage:(UIImage *)image;
//右侧第二按钮
- (void)setSecondRightButtonImage:(UIImage *)image;
//左侧第一Label
- (void)setLeftLabelText:(NSString *)info;

- (void)seticonImgView:(UIImage *)icon;

//底部横线
- (void)setBottomLine;

- (void)backAction;



@end

